import request from '@/utils/request'

// 查询套餐信息列表
export function listMeal(query) {
  return request({
    url: '/project/shao/meal/list',
    method: 'get',
    params: query
  })
}

// 查询套餐信息详细
export function getMeal(id) {
  return request({
    url: '/project/shao/meal/' + id,
    method: 'get'
  })
}

// 新增套餐信息
export function addMeal(data) {
  return request({
    url: '/project/shao/meal',
    method: 'post',
    data: data
  })
}

// 修改套餐信息
export function updateMeal(data) {
  return request({
    url: '/project/shao/meal',
    method: 'put',
    data: data
  })
}

// 删除套餐信息
export function delMeal(id) {
  return request({
    url: '/project/shao/meal/' + id,
    method: 'delete'
  })
}
